package com.gzy.cbrsystem.shimian.action;

import java.util.List;

import com.gzy.cbrsystem.shimian.dao.ShimianBingzhen;
import com.gzy.cbrsystem.shimian.dao.ShimianMjjy;
import com.gzy.cbrsystem.shimian.po.ShimianCase;
import com.gzy.cbrsystem.shimian.service.CaseReasoning;
import com.opensymphony.xwork2.ActionSupport;
public class SearchMjjyAction extends ActionSupport{
	
	protected CaseReasoning caseReasoning;
	//protected ShimianMjjy shimianMjjy;
	protected String query;
	protected List searchResult;
	public List getSearchResult()
	{
		return this.searchResult;
	}
	public void setSearchResult(List searchResult)
	{
		this.searchResult=searchResult;
	}
	public String getQuery()
	{
		return this.query;
	}
	public void setQuery(String query)
	{
		this.query=query;
	}

	public void setCaseReasoning(CaseReasoning caseReasoning) {
		this.caseReasoning = caseReasoning;
	}

	public CaseReasoning getCaseReasoning() {
		return this.caseReasoning;
	}
	public String execute()throws Exception{
		List result=this.getCaseReasoning().searchMjjy(this.getQuery());
		this.setSearchResult(result);
		return SUCCESS;
	}
}
